<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.crm.workflow.entity.WorkFlowNode" %>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>


<c-rt:if test="${empty param.id}">
<h1>建立问题分类大类</h1>
<input type="button" value="新增问题分类大类" onclick="doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=questionClassEdit&parentId=${cqt.id }', 'rightSide')"/>
</c-rt:if>
<c-rt:if test="${!empty param.id}">
<c-rt:set scope="request" var="cqt" value="${pu:get('com.yaodian100.crm.cs.entity.CommonQuestionType', param.id)}"/>
<table class="tb-data" width="100%">
<tr><th width="130px">ID</th><td>${cqt.id}</td></tr>
<tr><th width="130px">名称</th><td>${cqt.name }</td></tr>
<tr><th width="130px">描述</th><td>${cqt.description }</td></tr>
<tr><th width="130px">流程名称</th><td>
<c-rt:if test="${!empty cqt.workFlowName}">
${pu:get('com.yaodian100.crm.workflow.entity.WorkFlow',cqt.workFlowName).description }
</c-rt:if>
</td></tr>
<tr><th width="130px">是否显示在前台问与答</th><td>${cqt.showOnQAA }</td></tr>
<tr>

	<tr>
	<th></th><td><input type="button" onclick="doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=questionClassEdit&id=${cqt.id }&parentId=${cqt.parent.id }', 'rightSide')" value="编辑"/>
	<input type="button" value="新增子类" onclick="doAR('<%=application.getContextPath() %>/cs/page.do?iamlazy=questionClassEdit&parentId=${cqt.id }', 'rightSide')"/>
	<input type="button" value="删除" onclick="if(confirm('确定删除？'))doAR('<%=application.getContextPath() %>/cs/deleteCommonQuestionType.do?id=${cqt.id}','main')"/>
	</td>
	</tr>
	
	</table>
<br/>
<span id="miList">
<jsp:include page="mustInquire/list.jsp"/>
</span>
</c-rt:if>
	